package com.xiaoyy.sso.core.service.impl;

import com.xiaoyy.sso.core.dao.model.SysUserPrivilege;
import com.xiaoyy.sso.core.dao.mapper.SysUserPrivilegeMapper;
import com.xiaoyy.sso.core.service.SysUserPrivilegeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户权限 服务实现类
 * </p>
 *
 * @author chenzh
 * @since 2020-06-17
 */
@Service
public class SysUserPrivilegeServiceImpl extends ServiceImpl<SysUserPrivilegeMapper, SysUserPrivilege> implements SysUserPrivilegeService {

    @Override
    public List<String> selectOrgPriByUserId(String userId) {
        return baseMapper.selectOrgPriByUserId(userId);
    }
}
